package store.lunangangster.engine.bpmn.parser.handler;

import store.lunangangster.bpmn.model.BaseElement;
import store.lunangangster.engine.bpmn.parser.BpmnParser;

public abstract class AbstractBpmnParseHandler<T extends BaseElement> implements BpmnParseHandler {

  public abstract void handle0(BpmnParser bpmnParser, T element);

  @Override
  @SuppressWarnings("unchecked")
  public void handle(BpmnParser bpmnParser, BaseElement element) {
    handle0(bpmnParser, (T) element);
  }
}
